package com.Test1;

import java.io.IOException;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/4/8 14:37
 * @description
 */
public class Server {
    public static void main(String[] args) {
        try {
            ServerSocket ss = new ServerSocket(9000);
            Socket sk = ss.accept();
            OutputStream os = sk.getOutputStream();
            os.write("hot".getBytes());
            os.flush();
            os.close();
            os.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
